package com.atguigu.scala.chapter_07

object Scala_02 {
  def main(args: Array[String]): Unit = {
    var a=scala.io.StdIn.readLine()
    var b=a.split(" ")
//    var c=b.iterator
//    while (c.hasNext){
//      if (c.next().startsWith("s")){
//
//        println(c.next())
//      }
//    }
    for (i <-0 to b.length-1){
      if (b(i).startsWith("s")){
        print(b(i)+"\t")
      }
    }
  }

}
